import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/login",
    name: "Login",
    component: () => import("@/views/Login"),
  },
  {
    path: "/",
    name: "Main",
    component: () => import("@/views/Main.vue"),
    children: [
      {
        path: "/home",
        name: "home",
        component: () => import("@/views/Home"),
      },
      {
        path: "/bike",
        name: "bike",
        component: () => import("@/views/Bike"),
      },
      {
        path: "/student",
        name: "student",
        component: () => import("@/views/Student"),
      },
      {
        path: "/admin",
        name: "admin",
        component: () => import("@/views/Admin"),
      },
      {
        path: "/home",
        name: "home",
        component: () => import("@/views/Home"),
      },
      {
        path: "/rent",
        name: "rent",
        component: () => import("@/views/Rent"),
      },
    ],
  },
];
const router = new VueRouter({
  routes,
});

export default router;
